package com.bigcat.gulimall.demo.client;

import com.aliyun.openservices.log.Client;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ALiYunLogClientConfiguration {

    @Value("${aliyun.logsServer.accessId}")
    private String accessId;
    @Value("${aliyun.logsServer.accessKey}")
    private String accessKey;
    @Value("${aliyun.logsServer.host}")
    private String host;

    @Bean
    public Client aLiYunLogClient() {
        return new Client(host, accessId, accessKey);
    }

}
